package com.CNMedical.system.service;

import java.util.List;

import com.CNMedical.common.core.domain.R;
import com.CNMedical.system.domain.DTO.AppletExamScoreDTO;
import com.CNMedical.system.domain.entity.AppletExamScore;
import com.CNMedical.system.domain.vo.AppletExamScoreVO;

/**
 * 考试成绩Service接口
 * 
 * @author tang
 * @date 2023-03-28
 */
public interface IAppletExamScoreService 
{

    Boolean isExam(String knowledgeId,String userId);

    List<AppletExamScoreVO> getFinishExamList(String userId);

    R countScore(String knowledgeId, String userId);
    /**
     * 查询考试成绩
     * 
     * @param id 考试成绩主键
     * @return 考试成绩
     */
    public AppletExamScore selectAppletExamScoreById(Long id);

    /**
     * 查询考试成绩列表
     * 
     * @param appletExamScore 考试成绩
     * @return 考试成绩集合
     */
    public List<AppletExamScoreVO> selectAppletExamScoreList(AppletExamScoreDTO appletExamScore);

    /**
     * 新增考试成绩
     * 
     * @param appletExamScore 考试成绩
     * @return 结果
     */
    public int insertAppletExamScore(AppletExamScore appletExamScore);

    /**
     * 修改考试成绩
     * 
     * @param appletExamScore 考试成绩
     * @return 结果
     */
    public int updateAppletExamScore(AppletExamScore appletExamScore);

    /**
     * 批量删除考试成绩
     * 
     * @param ids 需要删除的考试成绩主键集合
     * @return 结果
     */
    public int deleteAppletExamScoreByIds(Long[] ids);

    /**
     * 删除考试成绩信息
     * 
     * @param id 考试成绩主键
     * @return 结果
     */
    public int deleteAppletExamScoreById(Long id);
}
